package cool.tsy.emos.wx.service;

import cool.tsy.emos.wx.db.pojo.TbDept;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author WangHongxuan
 * @since 2021-09-24
 */
public interface DeptService {

    /**
     * <h2>查询部门列表</h2>
     */
    List<TbDept> searchAllDept();

    /**
     * <h2>添加部门</h2>
     */
    int insertDept(String deptName);

    /**
     * <h2>根据id删除部门</h2>
     */
    void deleteDeptById(int id);

    /**
     * <h2>根据id更新部门信息</h2>
     */
    void updateDeptById(TbDept entity);
}
